package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.WxworkOmsRelationModel;
import com.ruoyi.system.service.WxworkOmsRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hnb
 * @Date 2024/10/10
 * @Description
 **/
@RestController
@RequestMapping("/system/wx")
public class wxworkOmsRelationController extends BaseController {
    @Autowired
    private WxworkOmsRelationService wxworkOmsRelationService;

    /**
     * 查询用户详细
     */
    @GetMapping("/view/{userId}")
    public AjaxResult view(@PathVariable("userId") String userId)
    {
        WxworkOmsRelationModel wxworkOmsRelationModel = wxworkOmsRelationService.selectByID(userId);
        return AjaxResult.error("12",wxworkOmsRelationModel);
    }
}
